package axb;

import java.sql.ResultSet;

public class aa {
    public static void main(String[] args) {
        
        try {
            crud c = new crud();
            book book=new book();
            book.setBookname("好书");
            book.setAuthor("axb");
            book.setPrice(100);
            book.setRemark("自创");
            c.create(book);
            book.setBookname("axasdfa");
            book.setId(34);
            c.update(book);
            c.delete(7);
            c.QueryAll();
            // c.create("axasd", "ssdf", 10.00, "111");
            // ResultSet rs= c.query("select bookname from book where id=3");
            // while(rs.next()){
            // System.out.printf( rs.getString("bookname"));
            // }
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }
}
